/**
*  \file log_cfg.h
*
*  \brief Trace Log
*
*  \author Michael J. Hohmann  <michael.hohmann@linde-mh.de>
*
*
*/

#ifndef LOG_CFG_H_INCLUDED
#define LOG_CFG_H_INCLUDED

/*================================================[ public includes  ]================================================*/
#include "../cfg/prj.h"

/*================================================[ public defines   ]================================================*/

/*
*
*	level
*
* 	0 		< 1 second 				event is expected with less than 1 second.
*   1 		> 1 second 				event is expected every second
* 	2 		> 1 minute				event is expected every minute
* 	3 		> 1 hour				event is expected every hour
*	4 		> working cycle  		event is expected once a working cycle
* 	5 		> 1 day  				warning
* 	6 		> 1 week  				warning
* 	7   	> 1 month				warning
* 	8 		> 1 year  				error
* 	9 		once a live time		error/debug
*/

/* 	Compile log level.
*	This macro define the compile log level.
*	log messages lower than this will removed from code.
*	There will be no possibility to record this messages.
*	It is expected to set this level to -1 for production code.
*/
#define LOG_COMPILE_LEVEL   4

/* 	Runtime log level.
*	This macro define the runtime log level.
*	Log messages lower than this will not processed. It is possible to change this level during runtime.
*/
#define LOG_RUNTIME_LEVEL	9

/* 	Size of the log buffer.
*
*	This macro define the size of the log buffer in bytes.
*/
#define LOG_BUFFER_SIZE  	U32_CONST(0x400)

/*================================================[ public datatypes ]================================================*/

/*================================================[ public variables ]================================================*/

/*================================================[ inline functions ]================================================*/

/*================================================[ public functions ]================================================*/

/*====================================================================================================================*/

#endif

/***********************************************************************************************************************
*                             Copyright 2018 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
